package com.waiting.rocket.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "overtime",consumerGroup = "overtime-consumer")
public class OvertimeListener implements RocketMQListener<String> {


    @Override
    public void onMessage(String userInfo) {
        System.out.println("===收到消息=== " + userInfo + " ===== 超時未付款 == 關閉訂單 === 恢復庫存數量");
    }

}
